home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / ARCH-VNC / SYSTEM.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  723b  |  38 lines

  1. /*
  2.  * linux/include/asm-arm/arch-vnc/system.h
  3.  *
  4.  * Copyright (c) 1996,1997,1998 Russell King.
  5.  * Copyright (c) 1998 Corel Computer Corp.
  6.  */
  7. #include <asm/hardware.h>
  8. #include <asm/dec21285.h>
  9. #include <asm/leds.h>
  10. #include <asm/io.h>
  11.  
  12. extern __inline__ void arch_reset(char mode)
  13. {
  14.     cli();
  15.  
  16.     /* open up the SuperIO chip
  17.      */
  18.     outb(0x87, 0x370);
  19.     outb(0x87, 0x370);
  20.  
  21.     /* aux function group 1 (Logical Device 7)
  22.      */
  23.     outb(0x07, 0x370);
  24.     outb(0x07, 0x371);
  25.  
  26.     /* set GP16 for WD-TIMER output
  27.      */
  28.     outb(0xE6, 0x370);
  29.     outb(0x00, 0x371);
  30.  
  31.     /* set a RED LED and toggle WD_TIMER for rebooting...
  32.      */
  33.     outb(0xC4, 0x338);
  34. }
  35.  
  36. #define arch_start_idle()    leds_event(led_idle_start)
  37. #define arch_end_idle()        leds_event(led_idle_end)
  38.